export default () => async (ctx, next) => {
    ctx.response.type = 'text/html'
    await next()
    // await ctx.render('web', {})
    await ctx.render('web', { ssr: ctx.state.ssr, state: JSON.stringify(ctx.state.state).replace(/<|>/g, '')})
}
